package com.xaicode.template.gendata;

import com.xaicode.template.gendata.mall.MockTask;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Locker xaicode@sina.com
 * @version 1.0
 * @date 2022/5/24 0024 20:11
 */
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        final ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);

        MockTask mockTask = context.getBean(MockTask.class);
        mockTask.mainTask(5000);
    }

}
